package com.example.supplychainbackend.dao.quality;

import com.example.supplychainbackend.entity.quality.InspectionOrderEntity;
import com.example.supplychainbackend.entity.quality.InspectionRequestEntity;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;
import java.util.Optional;

public interface InspectionOrderDao extends JpaRepository<InspectionOrderEntity,String> {
    InspectionOrderEntity findByInspectionOrderNumber(String inspectionOrderNumber);
    InspectionOrderEntity findByBatchNumber(String batchNumber);
    Optional<InspectionOrderEntity> findByReferenceDocumentNumber(String referenceDocumentNumber);

}
